/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
}

#app {
  width: 100%;
  height: 100%;
}

/* 科技感网格背景 */
.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(95, 217, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 217, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* 滚动条样式 - 科技感 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00bcd4, #2196f3);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #00acc1, #1976d2);
}

/* 输入框和按钮的基础样式 - 科技感 */
input, button, select {
  font-family: inherit;
  transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(1px);
}

/* 输入框聚焦效果 */
input:focus, select:focus {
  outline: none;
  border-color: #00bcd4 !important;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3) !important;
}

/* 加载动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  animation: spin 1s linear infinite;
}

/* 科技感发光边框 */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #00bcd4, #2196f3, #9c27b0, #00bcd4);
  z-index: -1;
  animation: glowing 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::after {
  opacity: 1;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}